package com.domain.dao;

import com.domain.pojo.Contacts;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ContactsMapper {
    int deleteByPrimaryKey(String id);

    int insert(Contacts record);

    int insertSelective(Contacts record);

    Contacts selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Contacts record);

    int updateByPrimaryKey(Contacts record);

    List<Contacts> selectByUserId(Map<String, Object> map);

    List<Contacts> selectByUsersIdAndType(@Param("userId") String userId);

    List<Map<String, Object>> selectFrindesId(@Param("userId") String userId);


    List<Map<String, Object>> selectByContUsers(@Param("userId") String userId);

    Contacts selectByNameAndPhoneNum(@Param("phoneNums") String phoneNums, @Param("userId") String userId);

    List<Map<String, Object>> selectBySerch(Map<String, Object> map);

    List<Contacts> seleByFriendsAndUsersId(@Param("usersId") String usersId, @Param("friendsId") String friendsId);

    int updateByPhone(Contacts cs);

    Contacts selectByUsersIdAndFriendsId(@Param("userId") String userId, @Param("s") String s);

    List<Contacts> selectByContUser(@Param("helpId") String helpId);

    Contacts selectByusersIdAndPhoneNum(@Param("userId") String userId, @Param("phoneNum") String phoneNum);
}